package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class STreasureHunterDeadInfo extends Object implements IMessageBase
    {
        public var killerEntityId:SEntityId;
        public var isRecapture:Boolean;
        public var itemCode:int;
        public var publicMiniplayer:SPublicMiniPlayer;
        public const _type:int = 12059;
        public static var _regist:STreasureHunterDeadInfo = new STreasureHunterDeadInfo(true);

        public function STreasureHunterDeadInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new STreasureHunterDeadInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.killerEntityId.__write(param1);
            param1.writeBool(this.isRecapture);
            param1.writeInt(this.itemCode);
            this.publicMiniplayer.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.killerEntityId = new SEntityId();
            this.killerEntityId.__read(param1);
            this.isRecapture = param1.readBool();
            this.itemCode = param1.readInt();
            this.publicMiniplayer = new SPublicMiniPlayer();
            this.publicMiniplayer.__read(param1);
            
        }

    }
}
